GXCloneInk
You can use theGXCloneInk
function to clone an ink object--that is, to add a reference to it and increment its owner count.
gxInk GXCloneInk(gxInk source);
source
- A reference to the ink object to clone.
- function result
- A reference to the cloned ink.
DESCRIPTION
TheGXCloneInk
function increments the owner count of the ink referenced in thesource
parameter. You typically use this function when you want to create another reference to an existing ink instead of creating a distinct copy of the ink.This function returns as its function result a reference to the ink--the same reference you pass in as the
source
parameter. It also increments the ink's owner count.ERRORS, WARNINGS, AND NOTICES
Errors ink_is_nil SEE ALSO
Owner counts for ink objects are discussed in the section "Copying, Comparing, and Cloning Ink Objects" beginning on page 5-39, and in the section "Manipulating an Ink Object's Owner Count" beginning on page 5-41.To examine the owner count of an ink, use the
GXGetInkOwners
function, described on page 5-64. To decrement the owner count of an ink, use theGXDisposeInk
function, described on page 5-57.